package io.mvvm.controller;

import io.mvvm.ws.WebSocketChannelHolder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: seize-login
 * @description:
 * @author: 潘
 * @create: 2021-05-15 02:30
 **/
@RestController
public class HelloController {

    @RequestMapping("/hello")
    public String hello() {
        return "Hello";
    }
    @RequestMapping("/userTest/add")
    public String userTestAdd() {
        WebSocketChannelHolder.sendMsg("root", "Hello");
        return "userTestAdd";
    }
    @RequestMapping("/adminTest/add")
    public String adminTestAdd() {
        return "adminTestAdd";
    }

}
